import React from 'react'

function TaChild({dataChildren}) {
  return (
    <div>
        {
              dataChildren&&dataChildren.map((val,i)=>{
                return <div key={i} onClick={(i)=>{
                    console.log(i);
                }}>
                  <img src={val.img} />
                  <p>{val.word}</p>
                </div>
              })
        }
    </div>
  )
}

export default TaChild